//
//  RootViewController.h
//  Computer
//
//  Created by qianfeng on 15/10/20.
//  Copyright © 2015年 qianfeng. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface RootViewController : UIViewController

//定义tableview 为了让子类继承
@property (nonatomic,strong) UITableView *tableView;

//用于初始化
-(instancetype)initWithTitle:(NSString *)title tabTitle:(NSString *)tabTitle tabImage:(NSString *)image;
//创建navigationbar左右按钮
-(void)createBarButtonLeftTitle:(NSString *)leftTitle leftImage:(NSString *)leftImage rightTitle:(NSString *)rightTitle rightImage:(NSString *)rightImage;
-(void)leftBarButtonClick:(UIBarButtonItem *)btn;
-(void)rightBarButtonClick:(UIBarButtonItem *)btn;


-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section;
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

@end
